PoE on/off from cmdline

User avatar
jakematic
Experienced Member
 
Posts: 168
Joined: Thu Jul 14, 2016 8:15 am
Location: NC USA
Has thanked: 362 times
Been thanked: 87 times

Re: PoE on/off from cmdline

Fri Nov 18, 2016 2:57 pm

sirhc wrote:
jakematic wrote:Well.... sed ain't gonna work on that file! :shock:


I too would NOT mess with the JASON file as any format error can bonk the switch.


Yeah... I've got a script now that will properly modify it... but just looking at all that crazy formatting gives me the heeby jeebies.

That's what I despise these 'modern' file formats. Too easy to kludge!
Last edited by jakematic on Sat Nov 19, 2016 8:41 am, edited 1 time in total.

User avatar
mike99
Associate
Associate
 
Posts: 837
Joined: Tue Nov 25, 2014 10:53 am
Location: Quebec, Canada
Has thanked: 95 times
Been thanked: 245 times

Re: PoE on/off from cmdline

Fri Nov 18, 2016 8:51 pm

sirhc wrote:I too would NOT mess with the JASON file as any format error can bonk the switch.

This has been a source of heated debate internally that Eric needs to put in routines to deal with corrupted or improperly formatted config files


With great power come great responsability. When you make that kind of modification, you should first test it in the lab and if you broke anything, just accept the error and reset the config.

Previous
Return to General Discussion

Who is online

Users browsing this forum: No registered users and 39 guests