Check Point Firewall cmds :CLI Tools Part 7-2 :How add multiple hosts objects using batch Scripts !

Video Statistics and Information

Video
Captions Word Cloud
Reddit Comments
Captions
again this video is the continuation video for uh adding host in your sms using script this is a part two so uh in last video we have seen how we can you know deal with script what is the script look like and what will be the uh the files will look like in this video i'll be showing you you know in a real time how that script runs and how that object pop-ups so if you see i don't have much objects configured specifically the object which we have in a script so i have total say 19 objects host objects and none of them call it like a host object right so if i'll show you my script what i have here so here if you see i have these are the object names which i am going to add and this is the script so let's quickly do vnscp and put these files into your sms so let me login to venice new session [Music] 192 168 1.254 give the username and the password skip for now okay let me do one thing guys here in sms let me go to the expert mode and change the cell change cell by default it's uh so i have i have just changed my cell okay give me one more now let's go to the venus cp okay let me log in again 192 168 1.254 admin and the password escape continue okay now let's go to the root from here go to the where from where let's go to the let's create one directory here which we call firewall fwg right and in fwg directory let's add all these details i mean all these files first is your add host script and directory script and the the files let me do 32 management server let me give you a better visibility so let me just change the size all right let me login 192 168 1.254 [Music] yes login to the sms and from here let me clear the screen go to the log wg directory ls give the permissions to execute uh things for the scripts one is your ad host and then next is your delete okay all right now just you need to run the command like give the in name call i mean the key give the command like bash and the script name which is add host and enter okay let's wait okay the operation is getting published 10 percent all right it's got succeeded i just quickly show you the script what i have run it's a single line script okay if you see this is a single line script but the file which we are running which is host.csv and i have just shown you what is in that file as well this is the file and you should be seeing this 10 host added into your sms so i'll just go to the sms and let me go back to the object explorer and you should see okay if you see here you will able to see all the new hosts are added see post 102 8910 whatever it is at this list the hosts are getting added so this is a simple script how we can add the host right
Info
Channel: Firewall Gyaan
Views: 38
Rating: undefined out of 5
Keywords: Check Point Firewall, Batch Scripts to add Hosts
Id: vN3l7ZK8Kp4
Channel Id: undefined
Length: 6min 26sec (386 seconds)
Published: Tue Nov 16 2021
Related Videos
Note
Please note that this website is currently a work in progress! Lots of interesting data and statistics to come.