Skip to content

CLI Examples

Maurice Garcia edited this page May 19, 2015 · 24 revisions

Initial Installation

	java -jar oscar.jar

DOCSIS

Create DOCSIS Template File

	java -jar oscar.jar -s d 3 -ftd > docsis.txt

Encode Text -> Binary - Add SharedSecret Key

	java -jar oscar.jar -s d 3 --key key.txt -c -i docsis.txt -o docsis.bin

Decompile Binary to Text -> Add OID and Display

	java -jar oscar.jar -d -i docsis.bin -OID [sysContact.0][1234567890][OctetString]

Add Downstream Frequency and Display

	java -jar oscar.jar -s d 3 -d -i docsis.bin -df 723000000

Add CVC Co-Sign Certificate

	java -jar oscar.jar -s d 3 -d -i docsis.bin -cvc c=COCVC.der

Add CVC Manufacture Certificate

	java -jar oscar.jar -s d 3 -d -i docsis.bin -cvc m=MANFUFACTURE-CVC.der

Add Software Download Filename

	java -jar oscar.jar -s d 3 -d -i docsis.bin -f FirmwareName.bin

Add TFTP Server Address IPv4

	java -jar oscar.jar -s d 3 -d -i docsis.bin -T v4=10.10.10.10

Add TFTP Server IPv6 Long and Short Form

	java -jar oscar.jar -s d 3 -d -i docsis.bin -T v6=2001::1

	java -jar oscar.jar -s d 3 -d -i docsis.bin -T v6=2001:558:ff2e:a92e:221:9bff:fe99:c7a0 

Add TLV - i.e. UpStream ChannelID

	java -jar oscar.jar -s d 3 -d -i docsis.bin -t 020101

PacketCable 2.0

Create Packet Cable Template File

	java -jar oscar.jar -s p 2.0 -ftd > pktcbl-2.0.txt

Text To Binary

	java -jar oscar.jar -s p 2.0 -c -i pktcbl-2.0.txt -o pktcbl-2.0.bin

Add DigitMap

	java -jar oscar.jar -s p 2.0 -dm digitMap.txt -c -i pktcbl-2.0.bin -o pktcbl-2.0-DM.bin

Display DigitMap

	java -jar oscar.jar -ddm -i pktcbl-2.0-DM.bin

UTILITIES

Bulk Compiling

	java -jar oscar.jar --key key.txt --bulk txt input output -df 723000000

Get TLV Definition - DestinationMACAddress /* TLV: [22.10.1]*/

	java -jar oscar.jar -td 22.10.1

HEX Dump

	java -jar oscar.jar -x -i pktcbl-2.0-DigitMap.bin

	java -jar oscar.jar -hex t -i docsis.bin
Clone this wiki locally