AW: Virtual Parameter for External IP Address
Michael Neumann
mn at jm-data.at
Thu Nov 9 07:08:42 EST 2017
Hi Jose,
this script will just check that one instance of WANIPConnection is existing - without any config ....
Most times I work with the second example in the wiki with the [].
I recommend also to insert some loggings to the provision. To be sure that its running ....
e.g. log('I am here');
Regards,
Michael Neumann
Von: Users [mailto:users-bounces at lists.genieacs.com] Im Auftrag von Jose Vela Delgado
Gesendet: Donnerstag, 9. November 2017 11:11
An: Community support for GenieACS users <users at lists.genieacs.com>
Betreff: Re: Virtual Parameter for External IP Address
Thank you very much Micheal.
I have created this provisions and a preset that calls the provisions when a 2 PERIODIC is generated but it still does not work.
Editing provision
Name
ExternalIPAddress
Script
declare(
"InternetGatewayDevice.WANDevice.1.WANConnectionDevice.1.WANIPConnection.*",
null, {path: 1});
Do you think I'm missing something to do?
Jose Vela
Técnico de networking routing, switching y GPON networks.
"El aprendizaje es experiencia, todo lo demás en información" Albert Einstein.
Mira mi perfil profesional y conecta conmigo en LinkedIn https://mailtrack.io/trace/link/11272c613abc3aa5882669842efa38ca50a1d6dc?url=https%3A%2F%2Fes.linkedin.com%2Fin%2Fjose-vela-delgado&userId=44382&signature=57ebe9999f9a77ce
2017-11-08 13:12 GMT+01:00 Michael Neumann <mailto:mn at jm-data.at>:
Hi Jose,
look at this example in the wiki: https://mailtrack.io/trace/link/d0fa50341e7ce5f7a5b6a527ae6077843d464fb2?url=https%3A%2F%2Fgithub.com%2Fzaidka%2Fgenieacs%2Fwiki%2FProvisions%23creatingdeleting-object-instances&userId=44382&signature=0a62ef065cc09413
// Ensure that *all* other instances are deleted
declare("InternetGatewayDevice.X_BROADCOM_COM_IPAddrAccCtrl.X_BROADCOM_COM_IPAddrAccCtrlListCfg.[]" null, {path: 0});
// Add the two entries we care about
declare("InternetGatewayDevice.X_BROADCOM_COM_IPAddrAccCtrl.X_BROADCOM_COM_IPAddrAccCtrlListCfg.[SourceIPAddress:192.168.1.0,SourceNetMask:255.255.255.0]", {path: now}, {path: 1});
declare("InternetGatewayDevice.X_BROADCOM_COM_IPAddrAccCtrl.X_BROADCOM_COM_IPAddrAccCtrlListCfg.[SourceIPAddress:172.16.12.0,SourceNetMask:255.255.0.0]", {path: now}, {path: 1});
You must try to find some parameters that are unique in your object then you can just say please create an object with that parameters.
You can later access also that object with that path filtering ....
// DELETE ALL UNWANTED OBJECTS
declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.[]", null, {path: 0});
// DEFINE WANTED OBJECT
declare("InternetGatewayDevice.WANDevice.1.WANConnectionDevice.[VlanMode:2,VlanId:202]", null, {path: 0});
// CHANGE Parameter in that Object
declare("InternetGatewayDevice.WANDevice.6.WANConnectionDevice.[VlanMode:2,VlanId:202]. Enable", null, {value: true});
Regards,
Michael Neumann
Von: Users [mailto:mailto:users-bounces at lists.genieacs.com] Im Auftrag von Jose Vela Delgado
Gesendet: Mittwoch, 8. November 2017 13:03
An: Community support for GenieACS users <mailto:users at lists.genieacs.com>
Betreff: Re: Virtual Parameter for External IP Address
Thanks for the reply Michael.
I do not mind working with provisions, if that solves my problem. As you say, it should be something that shows the object, regardless of the instance number.
How could I do that?
Thanks in advance.
https://mailtrack.io/trace/link/61344f076acc3d05e50865a15279aa9007151e08?url=https%3A%2F%2Fmailtrack.io%2FEnviado&userId=44382&signature=17243a5f72c409b5 con https://mailtrack.io/trace/link/a1b7fff532c268172daa4cffab2554f96c66d795?url=https%3A%2F%2Fchrome.google.com%2Fwebstore%2Fdetail%2Fmailtrack-for-gmail-inbox%2Fndnaehgpjlnokgebbaldlmgkapkpjkkb%3Futm_source%3Dgmail%26utm_medium%3Dsignature%26utm_campaign%3Dsignaturevirality&userId=44382&signature=ef450dd5da572234
Jose Vela
Técnico de networking routing, switching y GPON networks.
"El aprendizaje es experiencia, todo lo demás en información" Albert Einstein.
Mira mi perfil profesional y conecta conmigo en LinkedIn https://mailtrack.io/trace/link/7b21f78f8bfc17c4697c25358c9c63f80ab04798?url=https%3A%2F%2Fes.linkedin.com%2Fin%2Fjose-vela-delgado&userId=44382&signature=9fd6ad3e8b33efb8
2017-11-08 12:55 GMT+01:00 Michael Neumann <mailto:mailto:mn at jm-data.at>:
Hi,
it's not common to add an object with instance id 1 … you should more find a solution how you don’t need to care about the instance id.
I think it's not possible to do that – the acs just send a command AddObject and the device is respondiong the instance number ….
Why you want work with virtual parameters and not with a provision?
Best Regards
Michael Neumann
Von: Users [mailto:mailto:mailto:mailto:users-bounces at lists.genieacs.com] Im Auftrag von Jose Vela Delgado
Gesendet: Mittwoch, 8. November 2017 12:47
An: Community support for GenieACS users <mailto:mailto:users at lists.genieacs.com>
Betreff: Virtual Parameter for External IP Address
Hello everyone.
Will someone have a script to create a Virtual Parameter so that I can create the WANConnectionDevice.1 since as they can go down, only 2, 3 and 4 appear and the one I need is 1.
Thank you very much in advance.
Device parameters
• InternetGatewayDevice.WANDevice.1.WANConnectionDevice.2.WANPPPConnection.1.ExternalIPAddress
• InternetGatewayDevice.WANDevice.1.WANConnectionDevice.3.WANIPConnection.1.ExternalIPAddress
• InternetGatewayDevice.WANDevice.1.WANConnectionDevice.4.WANIPConnection.1.ExternalIPAddre
Jose Vela
Técnico de networking routing, switching y GPON networks.
"El aprendizaje es experiencia, todo lo demás en información" Albert Einstein.
Mira mi perfil profesional y conecta conmigo en LinkedIn https://mailtrack.io/trace/link/7b21f78f8bfc17c4697c25358c9c63f80ab04798?url=https%3A%2F%2Fes.linkedin.com%2Fin%2Fjose-vela-delgado&userId=44382&signature=9fd6ad3e8b33efb8
_______________________________________________
Users mailing list
mailto:mailto:Users at lists.genieacs.com
https://mailtrack.io/trace/link/76a4269a24c439e50e29dc4e12c02d0f7d88dd86?url=http%3A%2F%2Flists.genieacs.com%2Fmailman%2Flistinfo%2Fusers&userId=44382&signature=8576fc949f64d9ef
_______________________________________________
Users mailing list
mailto:Users at lists.genieacs.com
https://mailtrack.io/trace/link/59bba3db9b2fc9294f134257a25c1430dc6d2d1b?url=http%3A%2F%2Flists.genieacs.com%2Fmailman%2Flistinfo%2Fusers&userId=44382&signature=8ece129157d3761e
https://mailtrack.io/Enviado con https://chrome.google.com/webstore/detail/mailtrack-for-gmail-inbox/ndnaehgpjlnokgebbaldlmgkapkpjkkb?utm_source=gmail&utm_medium=signature&utm_campaign=signaturevirality
More information about the Users
mailing list