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 docsis 3 -ftd > docsis-template.txt

Encode Text -> Binary - Add SharedSecret Key

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

Decompile Binary to Text -> Add OID and Display

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

Add Downstream Frequency and Display

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

Add CVC Co-Sign Certificate

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

Add CVC Manufacture Certificate

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

Add Software Download Filename

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

Add TFTP Server Address IPv4

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

Add TFTP Server IPv6 Long and Short Form

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

Add TLV - i.e. UpStream ChannelID

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

PacketCable 2.0

Create Packet Cable Template File

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

Text To Binary

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

Add DigitMap

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

Display DigitMap

java -jar oscar.jar -ddm -i pktcbl-2.0-DigitMap.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-template.bin

Clone this wiki locally