Skip to end of metadata
Go to start of metadata

You are viewing an old version of this page. View the current version.

Compare with Current View Page History

« Previous Version 4 Next »



1- Install docker

2- Git clone  https://github.com/Juniper/docker-saltstack-junos.git

3- cd directory :  cd  docker-saltstack-junos

4- Then the rest …..   https://github.com/Juniper/docker-saltstack-junos

7- Basic junos ping and junos facts




[root@centos7 ~]#  cd /home/githubdir/docker-saltstack-junos/


[root@centos7 docker-saltstack-junos]# more ./uc-engine/pillar/top.sls
base:
proxy01:
- proxy01
# proxy02:
# - proxy02

[root@centos7 docker-saltstack-junos]# more ./uc-engine/pillar/proxy01.sls
proxy:
proxytype: junos
host: 192.168.70.21
username: root
passwd: Juniper1


[root@centos7 docker-saltstack-junos]# make master-start
181493ce3ff6112439c85bb44f1a67074653c23292175255699c191b87b36c0f

[root@centos7 docker-saltstack-junos]# docker ps
CONTAINER ID IMAGE COMMAND CREATED STATUS PORTS NAMES
181493ce3ff6 juniper/saltstack "/entrypoint.sh sa..." 8 seconds ago Up 7 seconds 0.0.0.0:8516->516/udp saltmaster-engine

[root@centos7 docker-saltstack-junos]# make master-shell
root@saltmaster-engine:/# ps -ef | grep proxy01
root 19 1 0 16:58 ? 00:00:00 /usr/bin/python /usr/bin/salt-proxy --proxyid=proxy01 -l debug -d
root 330 236 0 16:59 ? 00:00:00 grep --color=auto proxy01



7- Basic junos ping and junos facts


root@saltmaster-engine:/# salt '*' junos.ping
proxy01:
----------
message:
True
out:
True


root@saltmaster-engine:/# salt '*' junos.facts
proxy01:
----------
message:
{"domain": null, "hostname": "vSRX1", "ifd_style": "CLASSIC", "version_info": {"major": [15, 1], "type": "X", "build": 3, "minor": [49, "D", 70]}, "2RE": false, "serialnumber": "AF7691DC331F", "fqdn": "vSRX1", "switch_style": "NONE", "version": "15.1X49-D70.3", "HOME": "/cf/root", "srx_cluster": false, "model": "VSRX", "RE0": {"status": "OK", "last_reboot_reason": "0x4000:VJUNOS reboot ", "model": "VSRX-S", "up_time": "3 hours, 27 minutes, 34 seconds"}, "vc_capable": false, "personality": "UNKNOWN"}
out:
True



  • No labels