Can S7 PLC send CLi commands

Nuko-san

Member
Join Date
Nov 2013
Location
Edinburgh
Posts
4
Hi Guys,
Got an interesting question, has anybody tried to use a PLC to re-configure a router? I have done so using SNMP (relatively simple but not reliable) and was wondering whether anyone tried sending an SSID change "request"(for example).
 
Hi Guys,
Got an interesting question, has anybody tried to use a PLC to re-configure a router? I have done so using SNMP (relatively simple but not reliable) and was wondering whether anyone tried sending an SSID change "request"(for example).


I've never heard of anyone trying to send CLI commands over telnet/ssh from a PLC.



SNMP however, I've used multiple times. There is a library available on the Siemens website. Whatever you changed, always make sure you read the values back to make sure they took.



https://support.industry.siemens.com/cs/us/en/view/57249109


You would probably need a MIB browser to understand the OID structure, but at least with SCALANCE switches you can get a lot from the config file. Everything in the config file includes the OID, which can make a great starting point.
 
I've never heard of anyone trying to send CLI commands over telnet/ssh from a PLC.



SNMP however, I've used multiple times. There is a library available on the Siemens website. Whatever you changed, always make sure you read the values back to make sure they took.



https://support.industry.siemens.com/cs/us/en/view/57249109


You would probably need a MIB browser to understand the OID structure, but at least with SCALANCE switches you can get a lot from the config file. Everything in the config file includes the OID, which can make a great starting point.
Actually python can to send some values to some PLCs, Pymodbus, Pylogix. If you can access the PLC. Automation Direct PLC even allows more control over ethernet. Some day, some bad hacker is going to cause lots trouble.
 
Actually python can to send some values to some PLCs, Pymodbus, Pylogix. If you can access the PLC. Automation Direct PLC even allows more control over ethernet. Some day, some bad hacker is going to cause lots trouble.


That's totally a different scenario, though, interacting with a PLC from a CLI instead of interacting with a CLI from a PLC.



PLCs having networkable interfaces is a feature, not a bug; how else could you talk to an HMI? There are a bunch of libraries out there for all sorts of communication mechanisms across multiple PLC platforms, protocols, and communication languages. It does mean that you need to be careful about network security though, 100%.
 

Similar Topics

So I had an odd request from a customer for the above. I have written the logic and tested it all in one PLC with only using 7 outputs and 7...
Replies
15
Views
432
I need to change my program to increase a IP transducer by 0.5 psi every 5 seconds. I am making a automated pressure tester using a pump, IP...
Replies
6
Views
1,057
I am trying to use my Beckhoff PLC to send emails. I am using a Gmail account that I just created. Apparently Google has removed “Less Secured...
Replies
2
Views
1,138
Good morning, I am looking for a way to send a report every so often via Email. I know that I must establish a connection between the PLC and a...
Replies
1
Views
1,106
is there any way in factorytalk ME to send a signal to the plc with a "goto" button or to link a "goto" and a push button to act at the same time...
Replies
2
Views
1,535
Back
Top Bottom